package com.data.controller;

import com.data.entity.Tenant;
import com.data.service.TenantService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ytj
 * @date 2024/4/22
 */
@RestController
@RequestMapping("/tenant")
public class TenantController {
    @Resource
    private TenantService tenantService;

    @PostMapping("/add")
    public void add(@RequestBody Tenant tenant){
        tenantService.add(tenant);
    }
}
